﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WooCoo.DataPortal
{
    /// <summary>
    /// 数据门户异常类
    /// </summary>
    public class DataPortalException:Exception
    {
        public string _Message;
        public override string Message
        {
            get
            {
                return _Message;
            }
        }
        public string _StackTrace;
        public override string StackTrace
        {
            get
            {
                return _StackTrace;
            }
        }

        public DataPortalException(string message):base(message)
        {
            this._Message = message;
        }


        public DataPortalException(string message,string stackTrace)
        {
            this._Message = message;
            this._StackTrace = stackTrace;
        }

        public DataPortalException(string message, string stackTrace,Exception ex):base(message,ex)
        {
            this._Message = message;
            this._StackTrace = stackTrace;
        }

        public DataPortalException(string message,Exception ex):base(message,ex)
        {
            this._Message = message;
        }
    }
}
